package pack0619;

public class Name1 {
    public static void main(String[] Args){
        int x,y,z;
        for (x=0;x<=20;x++){
            for (y=0;y<=33;y++){
                for (z=0;z<=300;z+=3){
                    if(x+y+z==100&&5*x+3*y+z/3==100){
                        System.out.println("公鸡数是"+x+"母鸡数是"+y+"小鸡数是"+z);
                    }
                }
            }
        }
    }
}
